package com.greenleaf.entity;

import org.springframework.stereotype.Component;
/**
 * 商品明细表
 * */
@Component
public class PdtDetail {
private Integer dId;//编号
private Integer pdtId;//所属商品
private String pdtName;//商品名称
private String pdtImg;//商品图片
private double unit;//单价
private Integer number;//数量
private double total;//小计
private Integer cateId;//所属购物车
private String pdtUrl;//商品链接
private String size;
public Integer getdId() {
	return dId;
}
public void setdId(Integer dId) {
	this.dId = dId;
}
public Integer getPdtId() {
	return pdtId;
}
public void setPdtId(Integer pdtId) {
	this.pdtId = pdtId;
}
public String getPdtName() {
	return pdtName;
}
public void setPdtName(String pdtName) {
	this.pdtName = pdtName;
}
public String getPdtImg() {
	return pdtImg;
}
public void setPdtImg(String pdtImg) {
	this.pdtImg = pdtImg;
}
public double getUnit() {
	return unit;
}
public void setUnit(double unit) {
	this.unit = unit;
}
public Integer getNumber() {
	return number;
}
public void setNumber(Integer number) {
	this.number = number;
}
public double getTotal() {
	return total;
}
public void setTotal(double total) {
	this.total = total;
}
public Integer getCateId() {
	return cateId;
}
public void setCateId(Integer cateId) {
	this.cateId = cateId;
}
public String getPdtUrl() {
	return pdtUrl;
}
public void setPdtUrl(String pdtUrl) {
	this.pdtUrl = pdtUrl;
}
public String getSize() {
	return size;
}
public void setSize(String size) {
	this.size = size;
}
public PdtDetail(Integer dId, Integer pdtId, String pdtName, String pdtImg, double unit, Integer number, double total,
		Integer cateId, String pdtUrl, String size) {
	super();
	this.dId = dId;
	this.pdtId = pdtId;
	this.pdtName = pdtName;
	this.pdtImg = pdtImg;
	this.unit = unit;
	this.number = number;
	this.total = total;
	this.cateId = cateId;
	this.pdtUrl = pdtUrl;
	this.size = size;
}

public PdtDetail() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "PdtDetail [dId=" + dId + ", pdtId=" + pdtId + ", pdtName=" + pdtName + ", pdtImg=" + pdtImg + ", unit="
			+ unit + ", number=" + number + ", total=" + total + ", cateId=" + cateId + ", pdtUrl=" + pdtUrl + ", size="
			+ size + "]";
}

}
